package academicSup;

import java.util.Collection;

import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;

import department.Department;

public interface AcademicSupHome extends EJBLocalHome {
	
	/**
	 * create
	 * 
	 * Creates an instance of an Academic Supervisor mapped in the database.
	 * 
	 * @param firstName
	 * @param name
	 * @param login
	 * @param passwd
	 * @param email : 
	 * @param dep : the EJB corresponding to the department of this Academic Supervisor.
	 * @return : the corresponding instance of Academic Supervisor, mapped in the database.
	 * @throws CreateException
	 */
	public AcademicSup create(String firstName,String name, String login,String passwd,String email,Department dep) throws CreateException;
	
	/**
	 * findAllAcademicSup
	 * 
	 * Provides all AcademicSup EJBs (Academic Supervisor) existing in the database
	 * 
	 * @return: a collection of all AcademicSup instances.
	 * @throws FinderException
	 */
	public Collection<AcademicSup> findAllAcademicSup() throws FinderException;
	
	/**
	 * findByPrimaryKey
	 * 
	 * Provides an instance of AcademicSup EJB ( Academic Supervisor ) corresponding to the identification number provided.
	 * 
	 * @param id : the identification number in the workplacement system of the Academic Supervisor to find.
	 * @return: the instance of AcademicSup in the database corresponding to the provided ID
	 * @throws FinderException
	 */
	public AcademicSup findByPrimaryKey(int id) throws FinderException;
}
